package com.stormrage.entity.adm.req;

import java.io.Serializable;

/**
 * @author www.stormragetech.com
 * @date 2016年3月7日
 * @version 1.0.0
 */
public class AdmAcctReq implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = 7911280056694392995L;

	// ------------------------------- Fields -------------------------------

	private Integer id;

	private String acct;

	private String pass;

	private Integer role;

	private String realName;

	private String res;

	// ------------------------------- Fields -------------------------------

	public AdmAcctReq() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getAcct() {
		return acct;
	}

	public void setAcct(String acct) {
		this.acct = acct;
	}

	public String getPass() {
		return pass;
	}

	public void setPass(String pass) {
		this.pass = pass;
	}

	public Integer getRole() {
		return role;
	}

	public void setRole(Integer role) {
		this.role = role;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getRes() {
		return res;
	}

	public void setRes(String res) {
		this.res = res;
	}

	// ------------------------------- Fields -------------------------------

	public static AdmAcctReq instance(String acct, String pass, Integer role, String realName, String res) {
		AdmAcctReq entity = new AdmAcctReq();
		if (null != acct)
			entity.setAcct(acct);
		if (null != pass)
			entity.setPass(pass);
		if (null != role)
			entity.setRole(role);
		if (null != realName)
			entity.setRealName(realName);
		if (null != res)
			entity.setRes(res);
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : id - " + id + " acct - " + acct + " pass - " + pass + " role - " + role
				+ " realName - " + realName + " res - " + res;
	}

}
